<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
<%@page import="org.ipo.mm.web.util.pager.MeetingPager, java.util.Collection, org.ipo.mm.web.util.security.SecurityManager" %>
<%@page  language="java"
         import="org.ipo.mm.web.util.*, java.util.ArrayList"%>
<%@taglib prefix="h" uri="http://struts.apache.org/tags-html"%>

<br />
<div style="float:left; margin:auto; width:70%;">
    <table border="0" cellpadding="15" align="center">
        <tr>
            <td><h:link action="/protected/meeting_search?method=showMeetings&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/meeting.png" width="96" height="118" alt="Meeting"/>
            </h:link></td>
            <td><h:link action="/protected/representative_search?method=showReprs&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/representative.png" width="160" height="118" alt="Representative"/>
            </h:link></td>
            <td><h:link action="/protected/institution_search?method=showInstitutions&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/institution.png" width="96" height="118" alt="Institution"/>
            </h:link></td>
        </tr>
        <tr>
            <td><h:link action="/protected/dispatch?method=showFamilies&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/family.png" width="96" height="118" alt="Family"/>
            </h:link></td>
            <td><h:link action="/protected/dispatch?method=showTypes&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/type.png" width="96" height="118" alt="Type"/>
            </h:link></td>
            <td><h:link action="/protected/dispatch?method=showRegions&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/region.png" width="96" height="118" alt="Region"/>
            </h:link></td>
        </tr>
        <tr>
            <td><h:link action="/protected/dispatch?method=showCities&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/city.png" width="96" height="118" alt="City"/>

            </h:link></td>
            <td>
                <h:link action="/protected/actions_search?method=readActions&clearStack=true">
                    <img src="<%= request.getContextPath()%>/icons/actions.png" width="96" height="118" alt="Actions"/>
                </h:link>
            </td>
            <td></td>
        </tr>
    </table>
</div>
<%
            Collection<Integer> privileges = (Collection<Integer>) request.getSession().getAttribute(ConstantManager.SESSION_USER_PRIVILEGES);
            if (privileges.contains(SecurityManager.READ_USER_PRIVILEGE)) {%>
<div style="float:right;">
    <table border="0">
        <thead>
            <tr>
                <th colspan="3" bgcolor="#6589AB" style="color:#FFFFFF">Administrator</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><h:link action="/protected/dispatch?method=showUsers&clearStack=true">
                        <img src="<%= request.getContextPath()%>/icons/user.png" width="96" height="118" alt="User"/>
                    </h:link>
                </td>
                <td>
                    <h:link action="/protected/log_search?method=readLog&clearStack=true">
                        <img src="<%= request.getContextPath()%>/icons/log.png" width="96" height="118" alt="Log"/>
                    </h:link>
                </td>
                <td>

                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </tbody>
    </table>
</div>
<%}%>










